projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
558605c
)
cmd_mem: localize state variables
author
Mike Frysinger
<
[email protected]
>
Wed, 22 Dec 2010 14:40:29 +0000
(09:40 -0500)
committer
Wolfgang Denk
<
[email protected]
>
Sun, 9 Jan 2011 17:03:10 +0000
(18:03 +0100)
These "last" variables aren't used outside of this file, so add static.
Signed-off-by: Mike Frysinger <
[email protected]
>
common/cmd_mem.c
patch
|
blob
|
history
diff --git
a/common/cmd_mem.c
b/common/cmd_mem.c
index f7a442a88e65234384d33039ad3e02ca23c5c32a..f03233cee8b8cbcc0b8e86dc8ac3c1402832ec86 100644
(file)
--- a/
common/cmd_mem.c
+++ b/
common/cmd_mem.c
@@
-48,9
+48,9
@@
static int mod_mem(cmd_tbl_t *, int, int, int, char * const []);
/* Display values from last command.
* Memory modify remembered values are different from display memory.
*/
-
uint
dp_last_addr, dp_last_size;
-
uint
dp_last_length = 0x40;
-
uint
mm_last_addr, mm_last_size;
+
static uint
dp_last_addr, dp_last_size;
+
static uint
dp_last_length = 0x40;
+
static uint
mm_last_addr, mm_last_size;
static ulong base_address = 0;